DOCUMENT = talk
IMAGES = logo.eps no.eps yes.eps question.eps 

$(DOCUMENT).pdf : $(DOCUMENT).tex $(IMAGES)
	latexmk -lualatex $<

view : $(DOCUMENT).pdf
	(okular $< &>/dev/null &)

edit : 
	nvim $(DOCUMENT).tex

clean :
	latexmk -quiet -CA
	rm -rf *.pdf *.snm *.nav *.vrb $(IMAGES)

%.eps : %.svg
	inkscape --export-text-to-path --export-eps=$@ $<
